

            function addArduinoCod (Blockly) {
            
                        
                        

                        
        Blockly.Arduino['EXT_OBSTACLE_AVOIDANCE_BLOCK_1608087299881'] = function(block)
        {
            let pin = this.getFieldValue('pin');
          
            Blockly.Arduino.definitions_['include_EXT_OBSTACLE_AVOIDANCE_BLOCK_1608087299881'] = ``;
            Blockly.Arduino.definitions_['define_EXT_OBSTACLE_AVOIDANCE_BLOCK_1608087299881'] = `int avoidance_pinB = ${pin};`;
            Blockly.Arduino.definitions_['setup_EXT_OBSTACLE_AVOIDANCE_BLOCK_1608087299881'] = `pinMode(avoidance_pinB,INPUT);`;
             return  [`avoidanceB_pin.dpRead1()==0`];
        }
                    

                        
        Blockly.Arduino['EXT_OBSTACLE_AVOIDANCE_BLOCK_1608087299999'] = function(block)
        {
            let pin = this.getFieldValue('pin');
          
            Blockly.Arduino.definitions_['include_EXT_OBSTACLE_AVOIDANCE_BLOCK_1608087299999'] = ``;
            Blockly.Arduino.definitions_['define_EXT_OBSTACLE_AVOIDANCE_BLOCK_1608087299999'] = `int avoidance_pin = ${pin};`;
            Blockly.Arduino.definitions_['setup_EXT_OBSTACLE_AVOIDANCE_BLOCK_1608087299999'] = `pinMode(avoidance_pin,INPUT);`;
             return  [`avoidance_pin.aRead2()`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        